package fractal.map.servlet.response;

import java.util.ArrayList;
import java.util.List;

import fractal.map.calc.Constants;

public class InitializeFormInfo extends AbstractInfo
{
	private final double leftRe;
	private final double topIm;
	private final int currentLayerIndex;
	private final int squareSideSize;
	private List<LayerInfo> layers = new ArrayList<LayerInfo>();

	public InitializeFormInfo(double leftRe, double topIm, int currentLayerIndex)
	{
		this.leftRe = leftRe;
		this.topIm = topIm;
		this.currentLayerIndex = currentLayerIndex;
		this.squareSideSize = Constants.SQUARE_SIDE_SIZE;
	}

	public double getLeftRe()
	{
		return leftRe;
	}

	public double getTopIm()
	{
		return topIm;
	}

	public List<LayerInfo> getLayers()
	{
		return layers;
	}

	public void addLayer(LayerInfo layerInfo)
	{
		layers.add(layerInfo);
	}

	public int getCurrentLayerIndex()
	{
		return currentLayerIndex;
	}

	public int getSquareSideSize()
	{
		return squareSideSize;
	}
}
